using System;
using System.Collections.Generic;

namespace ConsoleApplication2.Models
{
    public partial class Apbatch
    {
        public Apbatch()
        {
            this.Apbtchdts = new List<Apbtchdt>();
        }

        public string BATCH { get; set; }
        public string ID { get; set; }
        public string REFERENCE { get; set; }
        public string INVNO { get; set; }
        public string DESC { get; set; }
        public Nullable<System.DateTime> DATE { get; set; }
        public Nullable<double> BAL { get; set; }
        public Nullable<double> BALDOL { get; set; }
        public Nullable<double> BALVEND { get; set; }
        public Nullable<double> AMT { get; set; }
        public Nullable<double> AMTDOL { get; set; }
        public Nullable<double> AMTVEND { get; set; }
        public Nullable<System.DateTime> DUEDATE { get; set; }
        public string TYPE { get; set; }
        public Nullable<double> DISCOUNT { get; set; }
        public Nullable<double> DISCOUNTD { get; set; }
        public Nullable<double> DISCOUNTV { get; set; }
        public string ENTITY { get; set; }
        public short CURRENCY { get; set; }
        public short PAYERTYPE { get; set; }
        public Nullable<short> CSTCTRID { get; set; }
        public string ReceiptNo { get; set; }
        public string File_Primary_Key { get; set; }
        public string PONo { get; set; }
        public virtual Batchttl Batchttl { get; set; }
        public virtual Cstctr Cstctr { get; set; }
        public virtual currency currency1 { get; set; }
        public virtual Vend Vend { get; set; }
        public virtual ICollection<Apbtchdt> Apbtchdts { get; set; }
    }
}
